import {createApp} from 'vue'
import '@/lib/index.css'
import Antd from 'ant-design-vue'
import 'ant-design-vue/dist/antd.css';
import Http from '@/utils/http.utils'
import message from '@/utils/message.utils'
import store from '@/store/index'
import App from './App.vue'
import draggable from '@/utils/draggable'
import router from '@/router'
import {createFromIconfontCN} from "@ant-design/icons-vue";

const IvzIcon = createFromIconfontCN({
    extraCommonProps: {style: {fontSize: '16px'}},
    // https://www.iconfont.cn/
    scriptUrl: '//at.alicdn.com/t/font_1174643_ulorav0nsno.js',
});
let app = createApp(App).use(Antd).use(store).use(router);
app.component("IvzIcon", IvzIcon).component("draggable", draggable);

app.config.globalProperties.$msg = message;
app.config.globalProperties.$http = Http
app.mount('#app')
